package com.shrcl.engineerprocess.domain.proxy;

import com.shrcl.engineerprocess.domain.proxy.EngineerCostEstimationAction;
import com.uniquesoft.gwt.shared.GWTNamedEntity;
import edu.fudan.langlab.domain.document.proxy.IDocumentContainerProxy;
import edu.fudan.langlab.domain.workflow.proxy.IHasProcessProxy;
import edu.fudan.mylang.pf.ProxyTarget;

@ProxyTarget("com.shrcl.engineerprocess.domain.EngineerCostEstimation")
public class EngineerCostEstimationProxy extends GWTNamedEntity implements IHasProcessProxy, IDocumentContainerProxy {
  public EngineerCostEstimationProxy() {
    this.setClazzName("com.shrcl.engineerprocess.domain.EngineerCostEstimation");
  }
  
  private String status;
  
  public void setStatus(final String status) {
    this.status = status;
  }
  
  public String getStatus() {
    return this.status;
  }
  
  public Boolean isActionValid(final EngineerCostEstimationAction action) {
    return EngineerCostEstimationManager.isActionValid(action,status);
  }
}
